projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
29a1824
)
(forward_to_next_line_start): Stop at end of buffer
author
Gerd Moellmann
<gerd@gnu.org>
Thu, 18 Jan 2001 12:26:54 +0000
(12:26 +0000)
committer
Gerd Moellmann
<gerd@gnu.org>
Thu, 18 Jan 2001 12:26:54 +0000
(12:26 +0000)
when searching for a newline.
src/xdisp.c
patch
|
blob
|
history
diff --git
a/src/xdisp.c
b/src/xdisp.c
index 6ca639bcbfa8011e8e4e193e00cab8be50fb5a80..2354eaa6209bd77296d84dd214da6fdb320f3d12 100644
(file)
--- a/
src/xdisp.c
+++ b/
src/xdisp.c
@@
-3511,7
+3511,8
@@
forward_to_next_line_start (it, skipped_p)
!newline_found_p && n < MAX_NEWLINE_DISTANCE;
n += STRINGP (it->string) ? 0 : 1)
{
- get_next_display_element (it);
+ if (!get_next_display_element (it))
+ break;
newline_found_p = it->what == IT_CHARACTER && it->c == '\n';
set_iterator_to_next (it, 0);
}